package com.zuoqi.common.utils;

import com.google.common.collect.Maps;
import java.util.HashMap;
import java.util.Map;

public class ReturnMapUtils {

    public static Map businessResult (String code,String msg,Object data){
        HashMap<Object, Object> returnMap = Maps.newHashMap();
        returnMap.put("code",code);
        returnMap.put("msg",msg);
        returnMap.put("data",data);
        return returnMap;
    }

    public static Map businessResult(String code,String msg){
        HashMap<Object, Object> returnMap = Maps.newHashMap();
        returnMap.put("code",code);
        returnMap.put("msg",msg);
        return returnMap;
    }

}
